home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / inventor / DxfToIv.man < prev    next >
Encoding:
Text File  |  1994-08-02  |  2.8 KB  |  68 lines

  1.  
  2.      DXFTOIV(1)                UNIX System V                DXFTOIV(1)
  3.  
  4.  
  5.  
  6.  
  7.      NAME
  8.           DxfToIv - convert DXF files to Inventor
  9.  
  10.      SYNOPSIS
  11.           DxfToIv [-b] [-h] [-v] file.dxf
  12.  
  13.      DESCRIPTION
  14.           DxfToIv reads a model file in AutoCAD's DXF format, and
  15.           constructs an Inventor scene graph, which is written to
  16.           stdout.
  17.  
  18.           The following command line options are allowed:
  19.  
  20.           -h   Prints a help message summarizing the options.
  21.  
  22.           -b   Write out the scene graph in binary Inventor format.
  23.                The default is to write out the files in Inventor's
  24.                ASCII format.
  25.  
  26.           -v   Verbose mode.  Traces the various phases of the
  27.                conversion process (see below).
  28.  
  29.      NOTES
  30.           Each "layer" of the autocad model has its own corresponding
  31.           SoSeparator node in the constructed scene graph.  Within a
  32.           layer, if there are multiple objects that do not touch each
  33.           other, each is grouped under its own separator.
  34.  
  35.           Each use of a "block" in the autocad model has its own
  36.           corresponding SoSeparator node, which is inserted as a child
  37.           of the layer that the block is used in.  All elements of a
  38.           block are children of the block's SoSeparator node (unlike
  39.           AutoCAD, in which elements of a block can reside in layers
  40.           other than the one the block is inserted in).
  41.  
  42.           Text is created using Inventor's default font; the AutoCAD
  43.           font information is ignored.  Text is sized and oriented to
  44.           approximate the placement in the AutoCAD model, but the
  45.           aligment may be slightly off.
  46.  
  47.           AutoCAD models do not include surface normals nor do they
  48.           have a well-defined notion of front and back sides of a
  49.           face.  DxfToIv computes normals on a per-vertex basis,
  50.           giving connected faces of a body consistent, smoothly
  51.           varying normals (subject to a crease angle of 30 degrees
  52.           between adjacent faces).  The normals are chosen to point
  53.           "outward" relative to the volume enclosed by the surface;
  54.           for flat surfaces, the choice of normal direction is
  55.           arbitrary.  Open surfaces are given SoShapeHints values of
  56.           SURFACE|ORDERED to enable two-sided lighting so that they
  57.           will appear correct from either side.
  58.  
  59.           The conversion process takes place in four phases:  read the
  60.           DXF file and construct the initial scene graph; identify and
  61.           detach separate bodies within each layer; compute the
  62.           normals for the face sets; and write the resulting graph.
  63.           For large DXF files, the conversion may take some time.
  64.           Progress of the conversion can be traced by specifying the
  65.           -v option to DxfToIv ; processing of face sets is counted by
  66.           50's.
  67.  
  68.